package com.yanqu.road.logic.bussiness.cricket;

import com.yanqu.road.entity.cricket.court.*;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.LinkedList;
import java.util.Map;

public class CrossCricketBussiness {

    public static Map<Integer, CricketCourtData> getCricketCourtDataMap() {
        return DaoHelper.getCrossCricketCourtDaoImpl().getCricketCourtDataMap();
    }

    public static boolean addCricketCourtData(CricketCourtData data){
        return DaoHelper.getCrossCricketCourtDaoImpl().add(data);
    }

    public static boolean updateCricketCourtData(CricketCourtData data) {
        return DaoHelper.getCrossCricketCourtDaoImpl().update(data);
    }

    public static Map<Long, Map<Long, CricketCourtUserData>> getCricketCourtUserDataMap() {
        return DaoHelper.getCrossCricketCourtUserDaoImpl().getCricketCourtUserDataMap();
    }

    public static boolean addCricketCourtUserData(CricketCourtUserData data) {
        return DaoHelper.getCrossCricketCourtUserDaoImpl().add(data);
    }

    public static boolean updateCricketCourtUserData(CricketCourtUserData data) {
        return DaoHelper.getCrossCricketCourtUserDaoImpl().update(data);
    }

    public static Map<Integer, Map<Integer, CricketCourtGroupData>> getCricketCourtGroupDataMap(int round) {
        return DaoHelper.getCrossCricketCourtGroupDaoImpl().getCricketCourtGroupDataMap(round);
    }

    public static Map<Integer, CricketCourtLockGroup> getCricketCourtLockGroupMap(int round) {
        return DaoHelper.getCrossCricketLockGroupDaoImpl().getCricketCourtLockGroupMap(round);
    }

    public static boolean addCricketCourtLockGroup(CricketCourtLockGroup data) {
        return DaoHelper.getCrossCricketLockGroupDaoImpl().add(data);
    }

    public static boolean updateCricketCourtLockGroup(CricketCourtLockGroup data) {
        return DaoHelper.getCrossCricketLockGroupDaoImpl().update(data);
    }


    public static boolean addCricketCourtGroupData(CricketCourtGroupData data) {
        return DaoHelper.getCrossCricketCourtGroupDaoImpl().add(data);
    }

    public static boolean updateCricketCourtGroupData(CricketCourtGroupData data) {
        return DaoHelper.getCrossCricketCourtGroupDaoImpl().update(data);
    }

    public static Map<Integer, LinkedList<CricketCourtTopUserData>> getCricketCourtTopUserList(int round) {
        return DaoHelper.getCrossCricketCourtTopUserDaoImpl().getCricketCourtTopUserList(round);
    }

    public static boolean addCricketCourtTopUserData(CricketCourtTopUserData data) {
        return DaoHelper.getCrossCricketCourtTopUserDaoImpl().add(data);
    }

    public static boolean updateCricketCourtTopUserData(CricketCourtTopUserData data) {
        return DaoHelper.getCrossCricketCourtTopUserDaoImpl().update(data);
    }


    public static Map<Integer, CricketCourtGroupMatchData> getCricketCourtGroupMatchDataMap(int round) {
        return DaoHelper.getCrossCricketCourtGroupMatchDaoImpl().getCricketCourtGroupMatchDataMap(round);
    }

    public static boolean addCricketCourtGroupMatchData(CricketCourtGroupMatchData data) {
        return DaoHelper.getCrossCricketCourtGroupMatchDaoImpl().add(data);
    }

    public static boolean updateCricketCourtGroupMatchData(CricketCourtGroupMatchData data) {
        return DaoHelper.getCrossCricketCourtGroupMatchDaoImpl().update(data);
    }

}
